package com.pizzaonline.JDBC;

import java.util.Properties;

public class DataBaseData {

	protected String host;
	
	protected String dbName;
	
	protected String userName;
	
	protected String mdp;
	
	protected String port;

	/** 
	 * Initialisation des paramètres.
	 * @param
	 */
	public void init(Properties properties)
	{
		host = properties.getProperty("hostName");
		dbName = properties.getProperty("dbName");
		userName = properties.getProperty("userName");
		mdp = properties.getProperty("password");
		port = properties.getProperty("port");
	}
	
	/**
	 * @return
	 */
	public String getHostName()
	{
		return host;
	}

	public void setHostname(String host)
	{
		this.host = host;
	}

	/**
	 * @return Nom de la base de données.
	 */
	public String getDatabaseName()
	{
		return dbName;
	}

	public void setDatabaseName(String db)
	{
		this.dbName = db;
	}

	/**
	 * @return
	 */
	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String login)
	{
		this.userName = login;
	}
	
	/** 
	 * @return
	 */
	public String getPassword()
	{
		return mdp;
	}

	public void setPassword(String pwd)
	{
		this.mdp = pwd;
	}

	/**
	 * @return
	 */
	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

}
